﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Kylin.Wiki.Model.View
{
    /// <summary>
    /// MenuVM
    /// </summary>
    public class MenuVM
    {
        /// <summary>
        /// 菜单ID
        /// </summary> 
        [DisplayName("菜单ID")]
        public int MenuID { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary> 
        [DisplayName("菜单名称")]
        public string MenuName { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [DisplayName("父级ID")]
        public int? PID { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")]
        public int? OrderNum { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [DisplayName("路径")]
        public string Path { get; set; } 

        ///// <summary>
        ///// 权限标识
        ///// </summary>
        //[DisplayName("权限标识")]
        //public string Permission { get; set; }

        /// <summary>
        /// 菜单类型（M目录 C菜单 F按钮）
        /// </summary>
        [DisplayName("菜单类型（M目录 C菜单 F按钮）")]
        public string MenuType { get; set; }  

        /// <summary>
        /// Meta
        /// </summary>
        [DisplayName("Meta")]
        public MetaVM Meta { get; set; }
         
        /// <summary>
        /// 子级菜单
        /// </summary>
        public List<MenuVM> ChildList { get; set; }
    }


    /// <summary>
    /// MetaVM
    /// </summary>
    public class MetaVM
    {
        /// <summary>
        /// 页面标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 是否外联
        /// </summary>
        public bool IsLink { get; set; }

        /// <summary>
        /// 是否保持激活
        /// </summary>
        public bool IsKeepAlive { get; set; }

        /// <summary>
        /// 是否隐藏菜单项
        /// </summary>
        public bool IsHide { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 角色可访问
        /// </summary>
        public List<string> Auth { get; set; }
         



    }
}
